package com.banksystem.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.banksystem.entity.Activity;
import com.banksystem.mapper.Activitymapper;
import com.banksystem.service.Activityservice;

@Service
public class Activityserviceimpl implements Activityservice {

	@Autowired
	private Activitymapper mapper;
	@Override
	public void addhd(String name, String gname, String date1, String date2, String master, String content) {
		mapper.addhd(name, gname, date1, date2, master, content);

	}
	@Override
	public List<Activity> findActivityAll(String gname) {
		
		return mapper.findActivityAll(gname);
	}
	@Override
	public void deleteactivity(String aid) {
		mapper.deleteactivity(aid);
		
	}
	@Override
	public List<Activity> findActivityAlllike(String seach, String gname) {
		
		return mapper.findactivityAlllike(seach, gname);
	}
	@Override
	public List<Activity> adminfindActivityAll() {
		// TODO Auto-generated method stub
		return mapper.adminfindActivityAll();
	}

}
